<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Binh
 * Date: 1/3/14
 * Time: 10:36 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<div class="title_head_table">
    <h2>Danh Sách Nhạc</h2>
    <form action= "<?php echo Uri::create('admin/search_music')?>" method="get">
        <div class="sidebar_search">
            <input type="text" name="search_input_music" class="search_input" value="search keyword" onclick="this.value=''" />
            <input type="image" name="search_submit_music" class="search_submit" src="<?php echo $img."search.png"; ?>"/>
        </div><!--Kết thúc sidebar_search-->
    </form>
</div>

<form action="<?php echo Uri::create('admin/delete_list_music');?>" method="post">
    <table id="rounded-corner" summary="DanhSachBaiNhac">
        <thead>
        <tr>
            <th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">Tên Bài Hát</th>
            <th scope="col" class="rounded">Thể Loại</th>
            <th scope="col" class="rounded">Tác Ca Sĩ</th>
            <th scope="col" class="rounded">Tác Giả</th>
            <th scope="col" class="rounded">Ngày Tháng Năm</th>
            <th scope="col" class="rounded-q4">Xóa</th>
        </tr>
        </thead>
        <tbody>
        <?php

        foreach($musics as $music){
            ?>
            <tr>
                <td><input type="checkbox" name="check_music[]" value="<?php echo $music['SONG_ID'];?>"/></td>
                <td><?php echo $music['SONG_NAME']?></td>
                <td><?php echo $music['GENRE_NAME']?></td>
                <td><?php echo $music['SINGER_NAME']?></td>
                <td><?php echo $music['AUTHOR_NAME']?></td>
                <td><?php echo $music['DATE_UPLOAD']?></td>

                <td><div align="center"><a href="<?php echo Uri::create('admin/delete_music/').$music['SONG_ID'];?>" ><img src="<?php echo $img."trash.png"; ?>" /></a></div></td>
            </tr>
        <?php
        }
        ?>

        </tbody>
    </table>

    <a href = "<?php echo Uri::create('admin/layout_music');?>" class="bt_blue"><img src="<?php echo $img."view_all.png" ?>"/></a>
    <input type="image" name="delete_list_music" class="bt_red" src="<?php echo $img."delete.png"; ?>" value="delete_list"/>

</form>